//
// Created by DELL on 2025/2/5.
//

#ifndef TASKBASE_H
#define TASKBASE_H
#include "Any.h"
#include "Result.h"

namespace zdotp {
    class Result;
    class TaskBase {
    public:

        TaskBase();
        virtual ~TaskBase() = default;

        void set_result(Result* result);
        void exec();
        virtual Any run() = 0;
    private:
        Result* result_;
    };

} // zdotp

#endif //TASKBASE_H
